#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>
#include <iostream>

using namespace std;

int main(int argc, char* argv[]) {
	CppUnit::TestSuite *unitSuite = new CppUnit::TestSuite( "All unit test" );
	CppUnit::TestFactoryRegistry::getRegistry().addTestToSuite(unitSuite);
	CppUnit::TextUi::TestRunner runner;

	runner.addTest(unitSuite);
	bool wasSucessful = runner.run();

	return wasSucessful ? 0 : 1;
}